#ifndef CUSTOMARRAY_H
#define CUSTOMARRAY_H

#include <iostream>
const int N = 1e2+10;
void printCopyright(bool a);
void createArray(int num1[],int num2[],bool LICENSE)
{
	printCopyright(LICENSE);
	for(int i=0;i<N;i++) num1[i] = INT_MIN,num2[i] = INT_MIN;
	int c;
	printf("Please enter the array A that you want to merge, and end with any letter.\n");
	for(int i=0;scanf("%d",&c);i++) num1[i] = c;
	getchar();
	printf("Please enter the array B that you want to merge, and end with any letter.\n");
	for(int i=0;scanf("%d",&c);i++) num2[i] = c;
}

int ListLength(int num[])
{
	int cnt = 0;
	while(num[cnt]!=INT_MIN) cnt++;
	return cnt;
}

void GetElem(int num[],int l,int &e)
{
	e = num[l];
}

bool LocateElem(int num[],int elem,int len)
{
	for(int i=0;i<len;i++)
	{
		if(num[i]==elem) return true;
	}
	return false;
}

void ListInsert(int num[],int len,int elem)
{
	num[len-1] = elem;
	//sstd::cout << num[len-1] << std::endl;
}

void print(int num[])
{
	std::cout << "The output results are as follows:" << std::endl;
	int L1_Len = ListLength(num);
	for(int i=0;i<L1_Len;i++) std::cout << num[i] << " ";
}

void printCopyright(bool which)
{
	std::cout << "****************************************************" << std::endl;
	std::cout << "*                COPYRIGHT STATEMENT               *" << std::endl;
	std::cout << "*ONE OF THE PROGRAM'S HEADERS IS CODED BY ZEPHYRBD!*" << std::endl;
	if(which) std::cout << "*       THE PROGRAM IS CODED BY ZEPHYRBD!          *" << std::endl;
	std::cout << "****************************************************" << std::endl;
}
#endif
